#ifndef Splitter_First
#define Splitter_First
#ifdef __GNUG__
#pragma interface
#endif

#include "CompVObject.h"

class Splitter: public CompositeVObject {
	Point split, ms;
	VObject *vop;
	void TestOpen(int i, int w, int h, Point &minsize);
public:
	MetaDef(Splitter);
	Splitter(VObject *v, Point minsize= gPoint0, int id= cIdNone);
	void Init(VObject *vop, Point minsize);

	void Open(bool mode= TRUE);
	Metric GetMinSize();
	void SetExtent(Point e);
	void SetOrigin(Point at);
	void SetSplit(bool, Point);
	void Control(int, int, void*);
	void SendDown(int, int, void*);
	OStream& PrintOn(OStream&);
	IStream& ReadFrom(IStream&);
};

#endif
